package constant

import "math/big"

const (
	// HZB 代币 ABI
	HzbABI = `[{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]`
	// Erc20ABI = `[{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}]`
	Erc20ABI = `[{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"type":"function"}]`
)

type ExchangeResult struct {
	TxHash    string   // 交易哈希
	GasUsed   *big.Int // 实际使用的 Gas
	GasFee    *big.Int // 实际 Gas 费用（wei）
	GasFeeHzb *big.Int // Gas 费用等值的 HZB（单位：百分之一）
	Success   bool     // 是否成功
}
